package com.akbar.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author akbar
 * @since 2025-07-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("announcement")
public class Announcement {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String title;

    private String description;

    private LocalDateTime date;

    /**
     * 发布者用户ID
     */
    private Integer publisherId;

    private String targetType;
}
